I:/Documents/developpement/projets/C/blast/blastguy_wii_2.2/src/image.h File Reference

Image manipulation uppon SDL_image used to load, display from files. More...

#include <SDL/sdl.h>
#include <SDL/SDL_image.h>
#include <stdbool.h>

Include dependency graph for image.h:

This graph shows which files directly or indirectly include this file:


Functions

image * image_load (char *full_path)
void image_draw (image *p_image, SDL_Surface *p_destination, int x, int y)
void image_draw_part (image *p_image, SDL_Surface *p_destination, int x, int y, int src_x, int src_y, int src_height, int src_width)
SDL_Surface * image_create (int r, int g, int b, int width, int height)
 Create a surface with the specified color and size.
void image_free (image *p_image)

Detailed Description

Image manipulation uppon SDL_image used to load, display from files.

Author:
Olivier DREVET
Date:
September 2008
Note:
ANSI c99 compliance. Published under the GPL 3 license (see license.txt for more info)

Function Documentation

SDL_Surface* image_create ( int  r,
int  g,
int  b,
int  width,
int  height 
)

Create a surface with the specified color and size.

Note:
Can be used for temp surfaces, or debugging...

void image_draw ( image *  p_image,
SDL_Surface *  p_destination,
int  x,
int  y 
)

Draw an image

void image_draw_part ( image *  p_image,
SDL_Surface *  p_destination,
int  x,
int  y,
int  src_x,
int  src_y,
int  src_height,
int  src_width 
)

Draw a part of an image

void image_free ( image *  p_image  ) 

free memory

Parameters:
the image to be freed

image* image_load ( char *  full_path  ) 

Parameters:
Full path of the file to load, support bmp, jpg, png
Returns:
A fully initialized image structure


Generated on Tue Nov 4 21:07:19 2008 for Blastgu by  doxygen 1.5.4